<?php

//use Illuminate\Support\Facades\Schema;
use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_configs', function (Blueprint $table) {
            $table->comment = '商城配置表';
            $table->increments('id')->comment('商城配置ID');
			$table->text('content')->comment('关于我们');
			$table->integer('image_id')->nullable()->comment('项目打赏图');
			$table->tinyInteger('wallet_pay_status')->default(1)->comment('是否可使用钱包支付:0=关闭,1=开启');
			$table->tinyInteger('wechat_pay_status')->default(1)->comment('是否可使用微信支付:0=关闭,1=开启');
			$table->timestamps(); 
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_configs');
    }
}
